<?php

namespace App\Http\Requests\TK;

use Illuminate\Foundation\Http\FormRequest;

class UpdateUserInfoRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'nickname' => 'bail|required',
            'avatar' => 'bail|nullable|string',
            'gender' => 'bail|in:0,1',
            'countdown' => 'bail|nullable|date',
            'mobile' => 'bail|nullable|mobile',
            'province' => 'bail|nullable|string'
        ];
    }
}
